[index]
TextFont Property
Syntax
For the text tool:
set the textFont to <font>
For objects:
set the textFont of [<part> of | <chunk> of]
<object> to <font>
Applies to bitmaps, buttons, datasheets, fields, groups, movies, picklists, shapes, the text tool (global)
Description
The textFont property determines the typeface of an object's text or text part or of text typed at an insertion point selected with the text tool. Object parts are listed in the following table:
Bitmap and field parts: label
DataSheet and pickList parts: colLabel, column (col) Field chunks: char, item, line, word
The textFont property can be set to any font that is installed and available in the user's computer system. The textFont property can be changed by using the set command and retrieved by using the get command.
Notes
If different fonts are used in a text selection, textFont returns the font of the first character in the selection.
If you wish to change the textFont of a chunk of a field, the field's multiFont property must be set to true. You must also specify the text whose font you wish to change:
set the textFont of char 5 to 10 of fld 2 to Helv
Examples
Create a field "Test" and type a word into it. Now type the following into the Message Box:
This text has been mechanically extracted from the Oracle Media Objects 1.0.4.9 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.